package com.example.security.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.security.dao.UserDao;
import com.example.security.entity.SecurityUser;
import com.example.security.service.UserService;

@Service("userService")
public class UserServiceImpl implements UserService{

	@Autowired
	UserDao userDao;
	
	@Override
	public SecurityUser getUserById(String userId) {
		
		return userDao.getUserById(userId);
	}

	@Override
	public SecurityUser getUserByParam(SecurityUser user) {
		
		return userDao.selectByParam(user);
	}

}
